<template>
  <div class="success-house">
    <!-- logo -->
    <div class="success-logo"><img src="../../../images/rentHouse/success.png" alt=""></div>
    <div v-if="status === '1'" class="success-status">更新成功</div>
    <div v-else class="success-status">房屋待核验</div>
    <div class="success-tips">在个人中心“我的房源”可查看您的房源状态</div>
    <div class="success-btns">
      <x-button class="btn" type="primary" @click.native="goHome">返回首页</x-button>
      <x-button class="btn" type="primary" @click.native="goMyHouse">我的房源</x-button>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      test: '',
      status: this.$route.query.status
    }
  },
  methods: {
    goHome () {
      this.$router.push('/')
    },
    goMyHouse () {
      this.$router.push('./myHouse')
    }
  }
}
</script>

<style lang="less">
.success-house{
  padding: 0 15px;
  font-size: .75rem;
  background: #fff;
  min-height: 100vh;
  box-sizing: border-box;
  overflow: auto;
  text-align: center;
  -webkit-overflow-scrolling: touch;
  .success-logo{
    padding-top: 110px;
    img{
      width:100px;
    }
  }
  .success-status{
    margin-top: 10px;
    font-size: 20px;
    // font-weight: bold;
  }
  .success-tips{
    margin-top: 10px;
    font-size: 12px;
    color:#999;
  }
  .success-btns{
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .btn{
      margin: 0;
      height: 44px;
      width:48%;
    }
  }
}

</style>
